Skip to content

Hide current status rows in public preview#29

Merged
Pigbibi merged 1 commit into
mainfrom
codex/public-preview-summary
Jun 9, 2026
Merged

Hide current status rows in public preview#29
Pigbibi merged 1 commit into
mainfrom
codex/public-preview-summary

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • show the state panel as Public Preview for unauthenticated visitors
  • hide current strategy/current status rows unless the user is allowed to read private config
  • keep the mode pill showing the selected mode instead of Not read

Validation

  • python3 scripts/sync_strategy_switch_page_asset.py
  • jq empty web/strategy-switch-console/strategy-profiles.example.json
  • node --experimental-default-type=module tests/strategy_switch_worker_validation.mjs
  • sed -n '/<script>/,/</script>/p' web/strategy-switch-console/index.html | sed '1d;' | node --check --input-type=commonjs
  • node --check --input-type=module < web/strategy-switch-console/page_asset.js
  • python3 scripts/runtime_settings.py validate
  • python3 -m unittest discover -s tests -v

@Pigbibi Pigbibi merged commit 9d37817 into main Jun 9, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/public-preview-summary branch June 9, 2026 09:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 81ac62e746

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const currentEntry = currentEntryForAccount(state.selected, account);
const currentMode = normalizeExecutionMode(currentEntry?.execution_mode, currentEntry?.dry_run_only);
el("mode-pill").textContent = currentMode ? modeLabel(currentMode) : t("notRead");
el("mode-pill").textContent = modeLabel(inputs.execution_mode);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the current mode in the signed-in summary

When a signed-in user changes the mode selector before dispatching, this now renders the pill from buildInputs() (the pending selection) while the panel title remains Current Config and the rows still include the current strategy. For an account whose stored mode is paper, clicking Live immediately makes the current-config pill say Live even though /api/config still reports paper, so the UI misstates the active mode until the workflow actually completes.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant